package com.ruoyi.bookbus.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品对象 book_product
 * 
 * @author zsq-cj
 * @date 2025-10-21
 */
public class BookProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品ID */
    private Long id;

    /** 商品标题 */
    @Excel(name = "商品标题")
    private String title;

    /** 作者 */
    @Excel(name = "作者")
    private String author;

    /** 原价 */
    @Excel(name = "原价")
    private BigDecimal originalPrice;

    /** 售价 */
    @Excel(name = "售价")
    private BigDecimal price;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String pic;

    /** 分类ID */
    @Excel(name = "分类ID")
    private Long categoryId;

    /** 商品状态(全新,近新,有笔记等) */
    @Excel(name = "商品状态(全新,近新,有笔记等)")
    private String condition;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String description;

    /** 卖家ID */
    @Excel(name = "卖家ID")
    private Long sellerId;

    /** 已售数量 */
    @Excel(name = "已售数量")
    private Long soldCount;

    /** 状态(0-下架,1-上架) */
    @Excel(name = "状态(0-下架,1-上架)")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setAuthor(String author) 
    {
        this.author = author;
    }

    public String getAuthor() 
    {
        return author;
    }

    public void setOriginalPrice(BigDecimal originalPrice) 
    {
        this.originalPrice = originalPrice;
    }

    public BigDecimal getOriginalPrice() 
    {
        return originalPrice;
    }

    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public void setPic(String pic) 
    {
        this.pic = pic;
    }

    public String getPic() 
    {
        return pic;
    }

    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }

    public void setCondition(String condition) 
    {
        this.condition = condition;
    }

    public String getCondition() 
    {
        return condition;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setSellerId(Long sellerId) 
    {
        this.sellerId = sellerId;
    }

    public Long getSellerId() 
    {
        return sellerId;
    }

    public void setSoldCount(Long soldCount) 
    {
        this.soldCount = soldCount;
    }

    public Long getSoldCount() 
    {
        return soldCount;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("author", getAuthor())
            .append("originalPrice", getOriginalPrice())
            .append("price", getPrice())
            .append("pic", getPic())
            .append("categoryId", getCategoryId())
            .append("condition", getCondition())
            .append("description", getDescription())
            .append("sellerId", getSellerId())
            .append("soldCount", getSoldCount())
            .append("status", getStatus())
            .toString();
    }
}
